<?php
/**
 * Created by PhpStorm.
 * User: zhangrongxiang
 * Date: 2018/2/13
 * Time: 下午9:20
 */

$str  = 'hello';
$str2 = bin2hex( $str );
echo $str2 . PHP_EOL;
$str3 = hex2bin( $str2 );
echo $str3 . PHP_EOL;
